package www.dashu.com.service;

import www.dashu.com.dao.SysRolePermsDao;
import www.dashu.com.domain.SysRolePerms;
import www.dashu.com.service.base.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRolePermsService extends BaseService<SysRolePerms, Long, SysRolePermsDao>
{

    public void deleteSysRolePermsByRoleId(Long roleId)
    {
        dao.deleteSysRolePermsByRoleId(roleId);
    }

    public void deleteSysRolePermsByPermId(Long permId)
    {
        dao.deleteSysRolePermsByPermId(permId);
    }

    public List<Long> findSysRolePermsByRoleIds(List<String> roleIds){
        return dao.findSysRolePermsByRoleIds(roleIds);
    }

}